package com.aaa.service.front.Impl;

import com.aaa.entity.Collect;
import com.aaa.entity.Goods;
import com.aaa.entity.GoodsQuery;
import com.aaa.entity.PagerData;
import com.aaa.mapper.front.CollectMapper;
import com.aaa.service.front.ICollectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class CollectServiceImpl implements ICollectService {
    @Resource
    private CollectMapper collectMapper;

    @Override
    public int doAddCollectGoods(Collect collect) {

        return collectMapper.doAddCollectGoods(collect);
    }

    @Override
    public List<Collect> findAllByCollect(Integer UserInfoId) {

        return collectMapper.findAllByCollect(UserInfoId);
    }

    @Override
    public int doDeleteByCollect(Integer collectId) {

        return collectMapper.doDeleteByCollect(collectId);
    }
}
